package com.huxiaohui.ssbx.config.props;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 语音服务配置属性绑定
 */
@ConfigurationProperties(prefix = "voice")
@Data
public class VoiceProperties {

    private String apiKey;

    private Audio audio = new Audio();
    private Tts tts = new Tts();

    @Data
    public static class Audio {
        private int sampleRate = 16000;
        private int channels = 1;
        private int bitsPerSample = 16;
    }

    @Data
    public static class Tts {
        private String voiceType = "qiniu_zh_female_tmjxxy";
        private String encoding = "wav";
        private float speedRatio = 0.9f;
    }


}